<include file="Public/header" />
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>栏目表</h3>
      <ul class="tab-base">
        <li><a href="JavaScript:void(0);" class="current"><span>管理</span></a></li>
        <li><a href="{:U('Setting/nav_add')}" ><span>添加</span></a></li>
      </ul>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <table class="table tb-type2" id="prompt">
    <tbody>
      <tr class="space odd">
        <th class="nobg" colspan="12"><div class="title">
            <h5>操作提示</h5>
            <span class="arrow"></span></div></th>
      </tr>
      <tr>
        <td><ul>
            <li>导航表</li>
          </ul></td>
      </tr>
    </tbody>
  </table>
  <form method='post' action="{:U('')}">
    <table class="table tb-type2">
      <thead>
        <tr class="thead">
          <th class="w48"></th>
          <th class="w48">排序</th>
          <th>导航标题</th>
          <th>导航分类</th>
          <th>导航链接</th>
          <th>是否启用</th>
          <th class="w96 align-center">操作</th>
        </tr>
      </thead>
      <tbody id="treet1">
        <notempty name="list">
        <volist name="list" id="v">
        <tr class="hover edit">
          <td>
            <input type="checkbox" name='check_ac_id[]' value="{$v['id']}" class="checkitem">
           </td>
          <td class="sort">
          	<span title="可编辑" ajax_control="Setting" ajax_branch='nav' datatype="order" fieldid="{$v['id']}" fieldname="order" nc_type="inline_edit" class="editable">{$v['order']}</span>
          </td>
          <td class="name">
         	<span title="可编辑" ajax_control="Setting" required="1" fieldid="{$v['id']}" ajax_branch='nav' fieldname="label" nc_type="inline_edit" class="editable tooltip">{$v['label']}</span>
          </td>
          <td>
            {$v['cid']}
          </td>
          <td>
            链接：{$v['href']}
          </td>
          <td class="yes-onoff">
            <if condition="$v['status'] eq 1">
              <a href="JavaScript:void(0);" class="tooltip enabled" ajax_control="Setting" ajax_branch='nav' nc_type="inline_edit" fieldname="status" fieldid="{$v['id']}" fieldvalue="1" title="关闭">	<img src="__IMG__/transparent.gif"></a>
              <else/>
              <a href="JavaScript:void(0);" class="tooltip disabled" ajax_control="Setting" ajax_branch='nav' nc_type="inline_edit" fieldname="status" fieldid="{$v['id']}" fieldvalue="0" title="启用"><img src="__IMG__/transparent.gif"></a>
            </if>
          </td>
          <td class="align-center">
            <a href="{:U('Setting/nav_edit',array('id'=>$v['id']))}">编辑</a>  |
            <a href="{:U('Setting/nav_del',array('id'=>$v['id']))}">删除</a>
          </td>
        </tr>
           <volist name="v['_child']" id="vb">
             <tr class="hover edit">
               <td>
                 <input type="checkbox" name='check_ac_id[]' value="{$vb['id']}" class="checkitem">
               </td>
               <td class="sort">
                 <span title="可编辑" ajax_control="Setting" ajax_branch='nav' datatype="order" fieldid="{$vb['id']}" fieldname="order" nc_type="inline_edit" class="editable">{$vb['order']}</span>
               </td>
               <td class="name">
                 <img src="__IMG__/tv-expandable1.gif" nc_type="flex" status="none" fieldid="4">
                 <span title="可编辑" ajax_control="Setting" required="1" fieldid="{$vb['id']}" ajax_branch='nav' fieldname="label" nc_type="inline_edit" class="editable tooltip">{$vb['label']}</span>
               </td>
               <td>
                 {$vb['cid']}
               </td>
               <td>
                 链接：{$vb['href']}
               </td>
               <td class="yes-onoff">
                 <if condition="$vb['status'] eq 1">
                   <a href="JavaScript:void(0);" class="tooltip enabled" ajax_control="Setting" ajax_branch='nav' nc_type="inline_edit" fieldname="status" fieldid="{$vb['id']}" fieldvalue="1" title="关闭">	<img src="__IMG__/transparent.gif"></a>
                   <else/>
                   <a href="JavaScript:void(0);" class="tooltip disabled" ajax_control="Setting" ajax_branch='nav' nc_type="inline_edit" fieldname="status" fieldid="{$vb['id']}" fieldvalue="0" title="启用"><img src="__IMG__/transparent.gif"></a>
                 </if>
               </td>
               <td class="align-center"><a href="{:U('Setting/nav_edit',array('id'=>$vb['id']))}">编辑</a>  |
                 <a href="{:U('Setting/nav_del',array('id'=>$vb['id']))}">删除</a>
               </td>
             </tr>
           </volist>         
        </volist>
        <else/>
        <tr class="no_data">
          <td colspan="10">暂无记录</td>
        </tr>
        </notempty>
      </tbody>
      <tfoot>
        <notempty name="list">
        <tr>
          <td><!--<label for="checkall_2">
              <input type="checkbox" class="checkall" id="checkall_2">
            </label>--></td>
          <td colspan="16"><!--<label for="checkall_2">全选</label>
            &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn" onclick="if(confirm('你确定要删除？')){$('form:first').submit();}"><span>删除</span></a>-->
          </td>
        </tr>
        </notempty>
      </tfoot>
    </table>
  </form>
</div>
<script type="text/javascript" src="__JS__/jquery.edit.js" charset="utf-8"></script> 
<include file="Public/footer" />